﻿<sap:ActivityDesigner x:Class="InspectionPageFlow.AfficherPageDesigner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
    xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
    xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation"
    xmlns:local="clr-namespace:InspectionPageFlow;assembly=InspectionPageFlow" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="125" d:DesignWidth="208">    
    
    <Border CornerRadius="5" BorderThickness="3" BorderBrush="LightBlue">
        <Border.Resources>
            <sapc:ArgumentToExpressionConverter x:Key="ArgumentToExpressionConverter" />
        </Border.Resources>
        <Border.Background>
            <SolidColorBrush Color="AliceBlue" />
        </Border.Background>
        <Grid Margin="3">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="65"/>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <Label>Étape :</Label>
            <sapv:ExpressionTextBox Grid.Column="1"
            Expression="{Binding Path=ModelItem.NomEtape, Mode=TwoWay,
            Converter={StaticResource ArgumentToExpressionConverter},
            ConverterParameter=In}" OwnerActivity="{Binding Path=ModelItem}"
            MinLines="1" MaxLines="1" MinWidth="50"
            HintText="Étape"/>

            <Label Grid.Row="1">URL :</Label>
            <sapv:ExpressionTextBox Grid.Row="1" Grid.Column="1"
            Expression="{Binding Path=ModelItem.UrlPage, Mode=TwoWay,
            Converter={StaticResource ArgumentToExpressionConverter},
            ConverterParameter=In}" OwnerActivity="{Binding Path=ModelItem}"
            MinLines="1" MaxLines="1" MinWidth="50"
            HintText="Url"/>
            
            <Label Grid.Row="2">Données :</Label>
            <sapv:ExpressionTextBox Grid.Row="2" Grid.Column="1"
            Expression="{Binding Path=ModelItem.Donnees, Mode=TwoWay,
            Converter={StaticResource ArgumentToExpressionConverter},
            ConverterParameter=InOut}" OwnerActivity="{Binding Path=ModelItem}"
            MinLines="1" MaxLines="1" MinWidth="50" UseLocationExpression="true"
            ExpressionType="{x:Type sys:Object}" HintText="Expression"/>
        </Grid>

    </Border>

</sap:ActivityDesigner>
